defClientCmd(CmdConsts.Login, function(byteBuf, ctx) {
	var channel = ctx.channel();
	var userAccount = newGo("");
	addClient(channel, userAccount);
});

defClientCmd(CmdConsts.Logout, function(byteBuf, ctx) {
	var channel = ctx.channel();
	var userAccount = getClient(channel);
	var self = userAccount == null ? null : userAccount.getUserInfoBar()
			.getCurUser();
	removeClient(channel);
});

defClientCmd(CmdConsts.AsUser, function(byteBuf, ctx) {
	var channel = ctx.channel();
	var userAccount = getClient(channel);
	// var userId="";
	var userDid = "";
	var user = newGo(userDid);
	userAccount.getUserInfoBar().setCurUser(user);
});

defClientCmd(CmdConsts.ListUserInfo, function(byteBuf, ctx) {

});
